package com.iris.live.services.data.models;

import javax.persistence.*;
import java.sql.Timestamp;

/**
 * Created by DF on 4/10/2017.
 */
@Entity
@Table(name = "报价五星延保", schema = "", catalog = "")
public class 报价五星延保Model {
    private Integer 延保编号;
    private String 延保原价;
    private String 延保折后价;
    private String manufactorMsrp;
    private String manufactorNetReceipts;
    private String thirdMsrp;
    private String thirdNetReceipts;
    private String 备注;
    private String 更新账号;
    private Timestamp 更新时间;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "延保编号")
    public Integer get延保编号() {
        return 延保编号;
    }

    public void set延保编号(Integer 延保编号) {
        this.延保编号 = 延保编号;
    }

    @Basic
    @Column(name = "延保原价")
    public String get延保原价() {
        return 延保原价;
    }

    public void set延保原价(String 延保原价) {
        this.延保原价 = 延保原价;
    }

    @Basic
    @Column(name = "延保折后价")
    public String get延保折后价() {
        return 延保折后价;
    }

    public void set延保折后价(String 延保折后价) {
        this.延保折后价 = 延保折后价;
    }

    @Basic
    @Column(name = "厂家延保MSRP")
    public String getManufactorMsrp() {
        return manufactorMsrp;
    }

    public void setManufactorMsrp(String manufactorMsrp) {
        this.manufactorMsrp = manufactorMsrp;
    }

    @Basic
    @Column(name = "厂家延保实收")
    public String getManufactorNetReceipts() {
        return manufactorNetReceipts;
    }

    public void setManufactorNetReceipts(String manufactorNetReceipts) {
        this.manufactorNetReceipts = manufactorNetReceipts;
    }

    @Basic
    @Column(name = "第三方延保MSRP")
    public String getThirdMsrp() {
        return thirdMsrp;
    }

    public void setThirdMsrp(String thirdMsrp) {
        this.thirdMsrp = thirdMsrp;
    }

    @Basic
    @Column(name = "第三方延保实收")
    public String getThirdNetReceipts() {
        return thirdNetReceipts;
    }

    public void setThirdNetReceipts(String thirdNetReceipts) {
        this.thirdNetReceipts = thirdNetReceipts;
    }

    @Basic
    @Column(name = "备注")
    public String get备注() {
        return 备注;
    }

    public void set备注(String 备注) {
        this.备注 = 备注;
    }

    @Basic
    @Column(name = "更新账号")
    public String get更新账号() {
        return 更新账号;
    }

    public void set更新账号(String 更新账号) {
        this.更新账号 = 更新账号;
    }

    @Basic
    @Column(name = "更新时间")
    public Timestamp get更新时间() {
        return 更新时间;
    }

    public void set更新时间(Timestamp 更新时间) {
        this.更新时间 = 更新时间;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        报价五星延保Model that = (报价五星延保Model) o;

        if (延保编号 != null ? !延保编号.equals(that.延保编号) : that.延保编号 != null) return false;
        if (延保原价 != null ? !延保原价.equals(that.延保原价) : that.延保原价 != null) return false;
        if (延保折后价 != null ? !延保折后价.equals(that.延保折后价) : that.延保折后价 != null) return false;
        if (备注 != null ? !备注.equals(that.备注) : that.备注 != null) return false;
        if (更新账号 != null ? !更新账号.equals(that.更新账号) : that.更新账号 != null) return false;
        if (更新时间 != null ? !更新时间.equals(that.更新时间) : that.更新时间 != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = 延保编号 != null ? 延保编号.hashCode() : 0;
        result = 31 * result + (延保原价 != null ? 延保原价.hashCode() : 0);
        result = 31 * result + (延保折后价 != null ? 延保折后价.hashCode() : 0);
        result = 31 * result + (备注 != null ? 备注.hashCode() : 0);
        result = 31 * result + (更新账号 != null ? 更新账号.hashCode() : 0);
        result = 31 * result + (更新时间 != null ? 更新时间.hashCode() : 0);
        return result;
    }
}
